#pragma once
#include "stdafx.h"
class ME{
public:
	ME(void);
	~ME(void);
	int doDomainMotionEstimation3SS(byte *pBFrame, byte *pDomain, int iXpos, int iYpos, int &mx, int &my, int iDistance, int iDomainWidth, int iDomainHeight, int iFrameWidth, int iFrameHeight);
	int doDomainMotionEstimationFull(byte *pBFrame, byte *pDomain, int iXpos, int iYpos, int &mx, int &my, int iDistance, int iDomainWidth, int iDomainHeight, int iFrameWidth, int iFrameHeight);
private:
	int getL2DomainDistance(byte *pBFrame, 
							byte *pDomain, 
							unsigned uXPos, 
							unsigned uYPos, 
							unsigned uDomainWidth, 
							unsigned uDomainHeight,
							unsigned uFrameWidth, 
							unsigned uFrameHeight);
};

